<template>
  <div class="page-img-container">
    <img class="page-img" :src="pageHeaderImage" />
    <div class="page-img-content">
      <div class="content-logo">
        <img src="../../public/img/page_logo.png" alt="" />
      </div>
      <div class="content-divider"></div>
      <div class="content-title">
        <div class="main-title">
          {{ zhTitle }}
        </div>
        <div class="sub-title">
          {{ enTitle }}
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "PageHeader",
  props: ["zhTitle", "enTitle", "pageHeaderImage"],
};
</script>
<style lang="scss" scoped>
.page-img-container {
  position: relative;
  height: 500px;
  overflow: hidden;
  .page-img {
    width: 101%;
    min-width: 1920px;
    min-height: 500px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .page-img-content {
    // 不加不行啊
    position: absolute;
    width: 100%;
    height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;
    .content-logo {
      img {
        width: 320px;
      }
    }
    .content-divider {
      height: 160px;
      width: 6px;
      margin: 60px;
      background-color: #f9f9f9;
    }
    .content-title {
      color: #f9f9f9;
      .main-title {
        font-size: 80px;
        font-weight: 600;
        letter-spacing: 7px;
      }
      .sub-title {
        font-size: 48px;
        font-weight: 600;
      }
    }
  }
}
</style>
